<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
 <script src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript"></script>
        <script>
	
         
				function strikeWord(val)
		          {
                 if($("#testcheckbox_"+val).attr("checked")){ 
                    $("#testtextfield_"+val).css({"text-decoration":"line-through"});
				      }
				       else
				     $("#testtextfield_"+val).css({"text-decoration":"none"});
		          }
			
        </script>
</head>

<body>
<?php
include("connection/connection.php");

$qr="select * from tbl_dtls_q1_main where id='$_REQUEST[var]'";
$res=mysql_query($qr);
$row=mysql_fetch_array($res);
$id=$row['village_id'];

$sqlgetName="select distinct block_name,panchayat_name,village_name,village_id,census_village_code from tbl_lookup_location where village_id in(".$id.")";
$querygetName=mysql_query($sqlgetName);
	
?>
<form action="multiple_edit.php" method="post">
<input type="hidden" name="frmId" value="<?php echo $_REQUEST['var'];?>" />
<input type="hidden" name="populationFactor" value="<?php echo $_REQUEST['populationFactor'];?>"  />
<table width="737" border="0">
  <tr>
    <td width="55"><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#000000"><b>Sr No.</b></font></td>
    <td width="206"><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#000000"><b>Block Name</b></font></td>
    <td width="228"><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#000000"><b>Grampanchayat Name</b></font></td>
    <td width="174"><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#000000"><b>Village Name</b></font></td>
    <td colspan="2"><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#000000"><b>Action</b></font></td>
  </tr>
 <?php
 $i=1;
 while($rowgetName=mysql_fetch_array($querygetName))
	{
	$j=$i%2;
	if($j==0)
	{
	$clr="#E8E8E8";
	}else{
	$clr="#F3F3F3";
	}
 ?>
  <tr bgcolor="<?php echo $clr;?>">
    <td><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#666666"><?php  echo $i;?></font></td>
    <td><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#666666"><?php  echo $rowgetName['block_name'];?></font></td>
    <td><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#666666"><?php  echo $rowgetName['panchayat_name'];?></font></td>
    <td><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#666666"><div id="testtextfield_<?php echo $i;?>"><?php  echo $rowgetName['village_name'];?></div></font></td>
    <td width="52" colspan="2"><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px" color="#000000"><input type="checkbox" name="testcheckbox[<?php  echo $rowgetName['census_village_code'];?>]" id="testcheckbox_<?php echo $i;?>" onclick="strikeWord(<?php echo $i;?>)" value="<?php  echo $rowgetName['village_id'];?>" /></font></td>
  </tr>
  <?php
  $i++;
  }
  ?>
  <tr><td colspan="5" align="center"><input type="submit" name="submit" value="Submit" /></td></tr>
</table>
</form>
</body>
</html>
